package com.yanwq.pulltorefreshview.view;

import android.content.res.Resources;

/**
 * 作者：yanweiqiang。
 * 日期：2016/5/3 0003。
 */
public interface PullToRefresh {
    int THRESHOLD = (int) (60 * Resources.getSystem().getDisplayMetrics().density);

    public enum Status {
        IDLE, PULL, RELEASE, REFRESH, FINISH
    }

    Status getStatus();

    void idle();

    void pull(int distance);

    void release(int distance);

    void refresh();

    void finish();

    void autoRefresh();

    void setListener(PullToRefreshListener listener);
}
